package com.wx.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wx.dao.SysWxAutoReplyMapper;
import com.wx.entity.SysWxAutoReply;
import com.wx.entity.SysWxAutoReplyExample;
import com.wx.service.SysWxAutoReplyService;

@Service("sysWxAutoReplyService")
public class SysWxAutoReplyServiceImpl implements SysWxAutoReplyService {

	private SysWxAutoReplyMapper SysWxAutoReplyMapper;
	
	@Override
	public int insert(SysWxAutoReply sysWxAutoReply) {
		return this.SysWxAutoReplyMapper.insert(sysWxAutoReply);
	}

	@Override
	public List<SysWxAutoReply> selectByExample(SysWxAutoReplyExample example) {
		return this.SysWxAutoReplyMapper.selectByExample(example);
	}

	@Override
	public SysWxAutoReply selectByPrimaryKey(Integer id) {
		return this.SysWxAutoReplyMapper.selectByPrimaryKey(id);
	}

	@Override
	public int countByExample(SysWxAutoReplyExample example) {
		return this.SysWxAutoReplyMapper.countByExample(example);
	}

	@Override
	public int updateByExample(SysWxAutoReply record,
			SysWxAutoReplyExample example) {
		return this.SysWxAutoReplyMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKey(SysWxAutoReply record) {
		return this.SysWxAutoReplyMapper.updateByPrimaryKey(record);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return this.SysWxAutoReplyMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int deleteByPrimaryKey(SysWxAutoReplyExample example) {
		return this.SysWxAutoReplyMapper.deleteByExample(example);
	}

	public SysWxAutoReplyMapper getSysWxAutoReplyMapper() {
		return SysWxAutoReplyMapper;
	}

	@Resource
	public void setSysWxAutoReplyMapper(SysWxAutoReplyMapper sysWxAutoReplyMapper) {
		SysWxAutoReplyMapper = sysWxAutoReplyMapper;
	}
}
